package com.loveprogrammer.utils;

import com.loveprogrammer.listener.INetworkEventListener;
import com.loveprogrammer.pojo.StringMessage;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandlerContext;

public class ChannelUtils {

	public static ChannelFuture pushToClient(Channel channel, StringMessage data) {
		return channel.writeAndFlush(data);
	}

	public static ChannelFuture pushToServer(Channel channel, StringMessage data) {
		return channel.writeAndFlush(data);
	}
}
